package com.ysp.summary.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@ToString
@Accessors(chain = true)     //chain 一个布尔值。如果为真，产生的setter返回的this而不是void。默认是假。如果fluent=true，那么chain默认为真。
@AllArgsConstructor
@NoArgsConstructor
//@TableName("student")

public class Student {

//    @TableId
    private Long id;

    private String name;
    private Integer age;
    private String className;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",locale = "zh",timezone = "CTT")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd",locale = "zh",timezone = "CTT")
    private Date updateTime;


}
